package com.yunche.yunchebusiness.mvp.model

import com.google.gson.JsonArray
import com.yunche.yunchebusiness.base.BaseResponse
import com.yunche.yunchebusiness.base.rx.SchedulerUtils
import com.yunche.yunchebusiness.network.RetrofitManager
import io.reactivex.Observable

/**
 * Create by Crcker on 2018/12/21 11:16
 * Email: Crcker@163.com
 */


class BrandModel {

    fun getBrand(): Observable<BaseResponse<JsonArray>> {
        return RetrofitManager.service.getBrand().compose(SchedulerUtils.ioToMain())
    }
}